package univer.oko.gui;

import univer.oko.utilities.CDUtilities;

import javax.swing.*;

/**
 * @author Eduard Dudar
 *         Date: 01.02.2006
 */
public abstract class CDAction extends AbstractAction {
    public CDAction(String name) {
        this(name, CDUtilities.createIcon("empty.png"));
    }

    public CDAction(String name, Icon icon) {
        this(name, icon, null);
    }

    public CDAction(String name, KeyStroke key) {
        this(name, CDUtilities.createIcon("empty.png"), key);
    }

    public CDAction(String name, Icon icon, KeyStroke key) {
        super(name, icon);
        this.putValue(Action.ACCELERATOR_KEY, key);
    }
}
